package com.jumi.microservice.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jumi.microservice.dto.reponse.api.JmFlowGoodResponse;
import com.jumi.microservice.dto.reponse.api.UserGoodFlowResponse;
import com.jumi.microservice.entity.JmFlowLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 店铺流量 Mapper 接口
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-09-14
 */
public interface JmFlowLogMapper extends BaseMapper<JmFlowLog> {

    Page getPage(Page page,@Param(Constants.WRAPPER) Wrapper wrapper);

    Page getGoodBrowsePage(Page<JmFlowGoodResponse> jmFlowGoodResponsePage,@Param(Constants.WRAPPER) QueryWrapper wrapper,@Param("orderByType") String orderByType);

    Page getUserGoodFlowPage(Page<UserGoodFlowResponse> objectPage,@Param(Constants.WRAPPER) QueryWrapper wrapper);
}
